/*-------------------------------------------------------------------------
	                    JavaScript Input Form Validator 
                         Version 1.1 by lUcHeXrB
						   updated: 2007/03/29
 ------------------------------------------------------------------------- */
function bloquearEntrada(KeyPress)
{
	KeyAscii=KeyPress.charCode? KeyPress.charCode : KeyPress.keyCode;
	
	return false
	
}
function vString(KeyPress)
{
	KeyAscii=KeyPress.charCode? KeyPress.charCode : KeyPress.keyCode
	if (KeyAscii!=8&&KeyAscii!=9&&KeyAscii!=35&&KeyAscii!=45&&KeyAscii!=46&&KeyAscii!=47&&KeyAscii!=58&&KeyAscii!=64)
	{
		if ((KeyAscii<65||KeyAscii>90)&&(KeyAscii<97||KeyAscii>122)&&KeyAscii!=193&&KeyAscii!=201&&KeyAscii!=205&&KeyAscii!=211&&KeyAscii!=218&&KeyAscii!=225&&KeyAscii!=233&&KeyAscii!=237&&KeyAscii!=243&&KeyAscii!=250&&KeyAscii!=32)
			return false
	}
}

function vStringInteger(KeyPress,Frm,action)
{
	KeyAscii=KeyPress.charCode? KeyPress.charCode : KeyPress.keyCode
	if(Frm)
	{
		if (KeyAscii==13)	
		{
			if(action){Frm.action.value=action;}
			//alert(Frm.action.value);
			Frm.submit();
		}
	}
	if (KeyAscii!=8&&KeyAscii!=9&&KeyAscii!=35&&KeyAscii!=45&&KeyAscii!=46&&KeyAscii!=47&&KeyAscii!=58&&KeyAscii!=64)
	{
		if ((KeyAscii<48||KeyAscii>57)&&(KeyAscii<65||KeyAscii>90)&&(KeyAscii<97||KeyAscii>122)&&KeyAscii!=193&&KeyAscii!=201&&KeyAscii!=205&&KeyAscii!=211&&KeyAscii!=218&&KeyAscii!=225&&KeyAscii!=233&&KeyAscii!=237&&KeyAscii!=243&&KeyAscii!=250&&KeyAscii!=32)
			return false
	}	
}

function vStringInteger2(KeyPress,obj,action)
{
	return vStringInteger(KeyPress,obj.form,action);
}

function vInteger(KeyPress)
{
	KeyAscii=KeyPress.charCode? KeyPress.charCode : KeyPress.keyCode
	if (KeyAscii!=8&&KeyAscii!=9)
	{
		if (KeyAscii<48||KeyAscii>57)
			return false
	}
}

function vDecimal(KeyPress)
{
	KeyAscii=KeyPress.charCode? KeyPress.charCode : KeyPress.keyCode
	if (KeyAscii!=8&&KeyAscii!=9&&KeyAscii!=46)
	{
		if (KeyAscii<48||KeyAscii>57)
			return false
	}
}
function vDecimalDimension(KeyPress)
{
	KeyAscii=KeyPress.charCode? KeyPress.charCode : KeyPress.keyCode
	if (KeyAscii!=8&&KeyAscii!=9&&KeyAscii!=46 && KeyAscii!=59 && KeyAscii!=44)
	{
		if (KeyAscii<48||KeyAscii>57)
			return false
			
	}
}
function vEnteros(KeyPress)
{	
	KeyAscii=KeyPress.charCode? KeyPress.charCode : KeyPress.keyCode	
			if (KeyAscii!=8&&KeyAscii!=9)	
			{		
				if (KeyAscii<48||KeyAscii>57)			
					return false	
			}
	}
function vDecimal_Busqueda(KeyPress,funcion,formulario)
{	
	KeyAscii=KeyPress.charCode? KeyPress.charCode : KeyPress.keyCode					
		if (KeyAscii!=8&&KeyAscii!=9&&KeyAscii!=46 && KeyAscii!=13)	
		{				
			if (KeyAscii<48||KeyAscii>57)			
				return false	
		}	
		else	
		{		
			if(KeyAscii==13)		
			{			
				my_submit(funcion,formulario);		
			}	
		}
}